package com.model;

import java.util.Date;
import java.util.HashSet;
import java.util.Set;

/**
 * OrdersVO entity.
 * 
 * @author MyEclipse Persistence Tools
 */

@SuppressWarnings("serial")
public class Orders implements java.io.Serializable {

	// Fields

	private Long ordersId;
	private Address addressDTO;
	private Users usersDTO;
	private String status;
	private Date createtime;
	private Double shipcharge;
	private Double totalprice;
	private Double adjustment;
	private Double pointprice;
	private Double discountprice;
	@SuppressWarnings("unchecked")
	private Set orderitemses = new HashSet(0);
	@SuppressWarnings("unchecked")
	private Set bonuspoints = new HashSet(0);

	// Constructors

	/** default constructor */
	public Orders() {
	}

	/** minimal constructor */
	public Orders(Address addressDTO, Users usersDTO) {
		this.addressDTO = addressDTO;
		this.usersDTO = usersDTO;
	}

	/** full constructor */
	@SuppressWarnings("unchecked")
	public Orders(Address addressDTO, Users usersDTO, String status, Date createtime,
			Double shipcharge, Double totalprice, Double adjustment,
			Double pointprice, Double discountprice, Set orderitemses,
			Set bonuspoints) {
		this.addressDTO = addressDTO;
		this.usersDTO = usersDTO;
		this.status = status;
		this.createtime = createtime;
		this.shipcharge = shipcharge;
		this.totalprice = totalprice;
		this.adjustment = adjustment;
		this.pointprice = pointprice;
		this.discountprice = discountprice;
		this.orderitemses = orderitemses;
		this.bonuspoints = bonuspoints;
	}

	// Property accessors

	public Long getOrdersId() {
		return this.ordersId;
	}

	public void setOrdersId(Long ordersId) {
		this.ordersId = ordersId;
	}

	public Address getAddress() {
		return this.addressDTO;
	}

	public void setAddress(Address addressDTO) {
		this.addressDTO = addressDTO;
	}

	public Users getUsers() {
		return this.usersDTO;
	}

	public void setUsers(Users usersDTO) {
		this.usersDTO = usersDTO;
	}

	public String getStatus() {
		return this.status;
	}

	public void setStatus(String status) {
		this.status = status;
	}

	public Date getCreatetime() {
		return this.createtime;
	}

	public void setCreatetime(Date createtime) {
		this.createtime = createtime;
	}

	public Double getShipcharge() {
		return this.shipcharge;
	}

	public void setShipcharge(Double shipcharge) {
		this.shipcharge = shipcharge;
	}

	public Double getTotalprice() {
		return this.totalprice;
	}

	public void setTotalprice(Double totalprice) {
		this.totalprice = totalprice;
	}

	public Double getAdjustment() {
		return this.adjustment;
	}

	public void setAdjustment(Double adjustment) {
		this.adjustment = adjustment;
	}

	public Double getPointprice() {
		return this.pointprice;
	}

	public void setPointprice(Double pointprice) {
		this.pointprice = pointprice;
	}

	public Double getDiscountprice() {
		return this.discountprice;
	}

	public void setDiscountprice(Double discountprice) {
		this.discountprice = discountprice;
	}

	@SuppressWarnings("unchecked")
	public Set getOrderitemses() {
		return this.orderitemses;
	}

	@SuppressWarnings("unchecked")
	public void setOrderitemses(Set orderitemses) {
		this.orderitemses = orderitemses;
	}

	@SuppressWarnings("unchecked")
	public Set getBonuspoints() {
		return this.bonuspoints;
	}

	@SuppressWarnings("unchecked")
	public void setBonuspoints(Set bonuspoints) {
		this.bonuspoints = bonuspoints;
	}

}